import request from '@/utils/request'
import {encrypt} from "@/utils/jsencrypt";

// 查询岗位列表
export function listArea(query) {
  return request({
    url: '/wm/area/list',
    method: 'get',
    params: query
  })
}

export function getArea(query) {
  return request({
    url: '/wm/area/listById',
    method: 'get',
    params: query
  })
}

export function updateArea(data) {
  return request({
    url: '/wm/area/update',
    method: 'post',
    data
  })
}
export function delArea(query) {
  return request({
    url: '/wm/area/del',
    method: 'get',
    params: query
  })
}

export function addArea(data) {
  return request({
    url: '/wm/area/add',
    method: 'post',
    data
  })
}
